package com.mini.conditon;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author shixiaopeng  on 2020/12/2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TraditionChanceCondition extends BaseCondition {

    @ApiModelProperty(value = "系统来源： 0 投放 2系统(手工导入)")
    private Integer systemFrom;

    @ApiModelProperty(value = "机会状态,-2:分配中 -1:未分配 0：未跟进 1:跟进中 2:已报名 ")
    private Integer chanceStatus;

    @ApiModelProperty(value = "扩展的机会状态,3:未有效跟进（包含未跟进和未有效跟进）")
    private Integer extendStatus;

    @ApiModelProperty(value = "运营侧状态, 0：新机会 1:回访 2:已报名")
    private Integer toufangStatus;

    @ApiModelProperty(value = "跟进中状态：0无效跟进，1有效跟进")
    private Integer followUpStatus;

    @ApiModelProperty(value = "项目Id")
    private Long itemId;
    //新增
    @ApiModelProperty(value = "机会信息 模糊搜索 综合搜索：可搜索机会ID/手机号/微信号/昵称")
    private String chanceInfo;


    @ApiModelProperty(value = "机会时间")
    private List<ChanceTimeCondition> chanceTimes;
    //军团
    @ApiModelProperty(value = "军团Id")
    private Long skuId;
    //量子军团
    @ApiModelProperty(value = "量子军团Id")
    private Long workRoomId;
    //销售部
    @ApiModelProperty(value = "销售部Id")
    private Long odId;
    //销售组
    @ApiModelProperty(value = "销售组Id")
    private Long ogId;
    //咨询师
    @ApiModelProperty(value = "咨询师/运营专员Id")
    private Long teacherId;


    @ApiModelProperty(value = "投放渠道id")
    private Integer channelId;

    @ApiModelProperty(value = "省Id")
    private String provinceId;

    @ApiModelProperty(value = "市Id")
    private String cityId;

    //今日拨打次数
    @ApiModelProperty(value = "今日拨打次数(格式：1-5)")
    private String todayCallNum;

    //今日微信条数
    @ApiModelProperty(value = "今日微信条数(格式：1-5)")
    private String todayChatNum;

    //加微状态
    @ApiModelProperty(value = "加微状态,true已加，false未加")
    private Boolean isAdd;

    @ApiModelProperty(value = "投放人员Id")
    private Long launchManId;



    @ApiModelProperty(value = "站点信息 模糊搜索 综合搜索：可搜索飞天站点/飞天站点名称")
    private String siteInfo;



    @ApiModelProperty(value = "登陆用户token")
    private String token;

    @ApiModelProperty(value = "转到的咨询师id")
    private Long newTeacherId;

    public enum ChanceTimeEnum{
        /*
         *分配时间
         */
        distribution(1,"分配时间"),
        /**
         * 创建时间
         */
        create(2, "创建时间"),
        /**
         * 末次跟进时间
         */
        lastFollowUp(3,"末次跟进时间"),
        /**
         * 末次有效跟进时间
         */
        lastValidFollowUp(4,"末次有效跟进时间"),
        ;
        public final Integer code;
        public final String desc;

        ChanceTimeEnum(Integer code, String desc){

            this.code = code;
            this.desc = desc;
        }
    }

    public enum  FollowUpEnum{
        VALID(1,"有效跟进"),
        INVALID(0,"无效跟进"),
        ;
        public final Integer code;
        public final String desc;

        FollowUpEnum(Integer code, String desc){

            this.code = code;
            this.desc = desc;
        }
    }
}
